<%--
  Created by IntelliJ IDEA.
  User: wwh
  Date: 2017/7/29
  Time: 13:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加用人单位信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="../../static/common/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../static/css/global.css">
</head>
<body>
<div class="admin-main">
    <fieldset class="layui-elem-field">
        <legend><a href="#" id="reload" onclick="reload"><i class="layui-icon">&#xe603;</i></a>用人单位信息</legend>
        <form id="content" class="layui-form" action="" method="post" style="width: 800px;">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>单位全称</label>
            <div class="layui-input-inline">
                <input type="text" name="fullname" autocomplete="off" class="layui-input" v-model="orgInfo.fullname" lay-verify="">

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单位简称</label>
            <div class="layui-input-inline">
                <input type="text" name="shortname" autocomplete="off" class="layui-input" v-model="orgInfo.shortname">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>地址</label>
            <div class="layui-input-inline">
                <input type="text" name="addr" autocomplete="off" class="layui-input" v-model="orgInfo.addr" lay-verify="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">网址</label>
            <div class="layui-input-inline">
                <input type="text" name="url" autocomplete="off" class="layui-input" v-model="orgInfo.url">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">经度</label>
            <div class="layui-input-inline">
                <input type="text" name="longtitude" id="longtitude" autocomplete="off" class="layui-input" v-model="orgInfo.longtitude">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">纬度</label>
            <div class="layui-input-inline">
                <input type="text" name="latitude" id="latitude" autocomplete="off" class="layui-input" v-model="orgInfo.latitude">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>联系人</label>
            <div class="layui-input-inline">
                <input type="text" name="contactor" autocomplete="off" class="layui-input" v-model="orgInfo.contactor" lay-verify="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>联系电话</label>
            <div class="layui-input-inline">
                <input type="text" name="phone" autocomplete="off" class="layui-input" v-model="orgInfo.phone" lay-verify="">
            </div>
        </div>

        <%--Todo 上传按钮样式切换--%>
        <div class="layui-form-item">
            <label class="layui-form-label">营业执照</label>
            <div class="layui-input-block">
                <img id="business" style="height: 100px;width: 100px">
                <input type="file" name="fileUp" id="businessliscense" class="layui-upload-file disabled_btn">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单位外景</label>
            <div class="layui-input-block">
                <img id="out" style="height: 100px;width: 100px">
                <input type="file" name="fileUp" id="outsidepic" class="layui-upload-file">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="button" class="layui-btn" lay-filter="save" value="提交审核" lay-submit>
                <input type="button" class="layui-btn" lay-filter="saveTemporary" value="暂时保存" lay-submit>
                <input type="button" class="layui-btn layui-btn-primary" @click="reload" value="返回">
            </div>
        </div>
    </form>
    </fieldset>
    <%--地图--%>
    <div id="r-result" style="float:right;position: relative;top: -600px;right:400px;z-index: 99999">
        <input type="text" id="suggestId" size="20" value="" style="width:150px;" />
        <button id="address">查询</button>
    </div>
    <div id="allmap" style="width: 400px;height: 400px;float:right;position: relative;top: -600px;"></div>
</div>
<script>
    var userid =${sessionScope.currentUser.getId()};
    var orgId = <%=request.getParameter("orgId")%>;
    var operateType = <%=request.getParameter("operateType")%>;
    var origin = <%=request.getParameter("origin")%>;
    console.log("传递参数："+userid+"  "+orgId+"  "+operateType+"   "+origin);
</script>
<script type="text/javascript" src="../../static/common/layui/layui.js"></script>
<script src="../../static/common/vue.min.js"></script>
<script src="../../static/common/axios.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=8K08Q6AWX7LcrskmDiE6BFSG5LqUfGGE"></script>
<script src="../../static/js/student/orgInfo.js"></script>
</body>
</html>
